package Test9;

public class Main {
    public static void main(String[] args) {
        Container container = new Container();
        Producer producer = new Producer(container);
        Consumer consumer = new Consumer(container);
        Thread t1 = new Thread(producer);
        Thread t2 = new Thread(producer);
        Thread c1 = new Thread(consumer);
        Thread c2 = new Thread(consumer);
        Thread c3 = new Thread(consumer);
        t1.start();
        t2.start();
        c1.start();
        c2.start();
        c3.start();
    }
}
